#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <float.h>

#define LIST 1301

#if (LIST == 1301)
size_t sum_index(size_t index )
{
    size_t i;
    static size_t sum=0;
    for (i = 1;i <= index;i++)
    {
        sum += i;
    }
    return sum;
}

int main(void)
{
    printf("%d\n",sum_index(1));
    printf("%d\n",sum_index(2));
    printf("%d\n",sum_index(3));
}

#elif (LIST == 130)
// 1-30
#include <stdio.h>
int main(void)
{
    const int i1=10;
    int *p1=(int *)&i1;
    int *p2=p1;
    *p1=100;
    printf("%d %d %d\n",i1,*p1,*p2);
    printf("%p %p %p\n\n",&i1,p1,p2);
    return 0;
}
#endif